<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程添加</title>
    <style>
        form {
            margin: 20px auto;
            width: 500px;
            border: 1px solid #ccc;
            padding: 20px
        }
    </style>
</head>
<body>
<form method="post" action="../course_add/">
    {% csrf_token %}
    <table>
        <tr>
            <th>课程名称</th>
            <td><input name="course"></td>
        </tr>
        <tr>
            <th>教师编号</th>
            <td><input name="teacher_id"/></td>
        </tr>
        <tr>
            <th>价格</th>
            <td><input name="price"/></td>
        </tr>
        <tr>
            <th>是否收费</th>
            <td><input name="price_bool"/></td>
        </tr>
        <tr>
            <th>考试方式</th>
            <td><input name="test_way"/></td>
{#                        <td>#}
{#            <select name="test_way">#}
{#                {% for i in info.values %}#}
{#                        <option> {{i.get_test_way_display}} </option>#}
{#                    {% endfor %}#}
{#                <option>是</option>#}
{#                <option>否</option>#}
{#            </select>#}
{#            </td>>#}
        </tr>
        <tr>
            <th>视频时长</th>
            <td><input name="video_time"/></td>
        </tr>
        <tr>
            <th>题库数量</th>
            <td><input name="number"/></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>